#include <iostream>

using namespace std;

class Picture
{
	public:
			Picture(int _length, int _weight,string _name)//带参构造函数
			{
				length = _length;
				weight = _weight;
				name = _name;
			}
			~Picture()
			{
				
			}
			Picture(Picture &otherPic)//拷贝构造函数
			{
				this->name = otherPic.name;
				this->length = otherPic.length;
				this->weight = otherPic.weight;
			}
			void showName()//显示图片名称
			{
				cout<<"名称为： "<<name<<endl;
			}
			void showInfo()//显示图片信息
			{
				cout<<"长度为 ： "<<length<< "  宽度为： "<<weight<<endl;
			}
			void setPicture(int _length,int _weight,string _name)
			{
				length = _length;
				weight = _weight;
				name = _name;
			}
	private:
			string name;
			int length,weight;
			
	
};

int main()
{
	Picture a(800,480,"1.bmp");
	a.showName();
	a.showInfo();
	Picture b = a;
	b.setPicture(100,100,"2.bmp");
	b.showName();
	b.showInfo();
	
}